package com.hotel.domain.service.impl;

import com.hotel.domain.dao.UserMapper;
import com.hotel.domain.service.UserService;
import com.hotel.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User login(User user) {
        return userMapper.getUser(user);
    }

    @Override
    public int changePassword(User user) {
        return userMapper.updateUser(user);
    }

}
